using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using SQLDAL;


/// <summary>
/// By Phuong
/// Date: 6/5/2009
/// </summary>

public partial class GUI_Webpage_Restaurants : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadRestaurantToDataList();
    }


    #region Load all restaurant to the data list
    public void LoadRestaurantToDataList()
    {
        RestaurantBll resBll = new RestaurantBll();
        SqlDataReader reader = resBll.ListAllRestaurant();
        dlRestaurant.DataSource = reader;
        dlRestaurant.DataBind();
    }
    #endregion
}